package properties

import "MoSkeleton/framework/core/consts"

type Profile struct {
	Mode     string `mapstructure:"mode" json:"mode" yaml:"mode"`
	Language string `mapstructure:"language" json:"language" yaml:"language"`
}

func (c *Profile) GetLanguage() string {
	if c.Language == "" {
		return consts.LanguageZhCN
	}
	return c.Language
}
